package com.ice.work.moment.ticket.dao.station;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ice.work.moment.facade.ticket.model.Station;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description Station dao
 * @Author DELL
 * @Create 2019-01-10
 * @Since 1.0.0
 */
@Repository
public class StationRepository extends ServiceImpl<IStationMapper, Station> implements IStationRepository {


    @Override
    public Station findByCodeAndDataStatus(String code, Integer dataStatus) {
        return this.baseMapper.selectOne(new QueryWrapper<Station>().lambda().eq(Station::getStationCode,code).eq(Station::getDataStatus, dataStatus));
    }

}


